﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AdvancedSearch.aspx.cs" Inherits="University.Workshop.WebApp.AdvancedSearch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script language="javascript" type="text/javascript">
// <![CDATA[

        function Select1_onclick() {

        }

// ]]>
    </script>
    <style type="text/css">
        .style1
        {
            width: 392px;
        }
        .style2
        {
            height: 47px;
        }
        .style3
        {
            width: 392px;
            height: 47px;
        }
        .style4
        {
            height: 36px;
        }
        .style5
        {
            width: 392px;
            height: 36px;
        }
        .style6
        {
            height: 46px;
        }
        .style7
        {
            width: 392px;
            height: 46px;
        }
        .style8
        {
            height: 51px;
        }
        .style9
        {
            width: 392px;
            height: 51px;
        }
        .style10
        {
            height: 54px;
        }
        .style11
        {
            width: 392px;
            height: 54px;
        }
        .style12
        {
            height: 36px;
            width: 228px;
        }
        .style13
        {
            height: 47px;
            width: 228px;
        }
        .style14
        {
            height: 46px;
            width: 228px;
        }
        .style15
        {
            height: 51px;
            width: 228px;
        }
        .style16
        {
            width: 228px;
        }
        .style17
        {
            height: 54px;
            width: 228px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width:100%;">
    <tr>
    <td></td>
                                <td><asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="Large" 
                                ForeColor="#003366" Text="ADVANCED SEARCH"></asp:Label></td>
    </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <table style="width:100%;">
                    <tr>
                        <td class="style4">
                            </td>
                        <td class="style5">
                            
                            <asp:Label ID="LblError" runat="server" ForeColor="#990000"></asp:Label>
                            
                        </td>
                        <td class="style12">
                            </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="Label6" runat="server" Text="Category: "></asp:Label>
                        </td>
                        <td class="style3">
                            <asp:DropDownList ID="DropDownList1" runat="server">
                                <asp:ListItem>All Products</asp:ListItem>
                                <asp:ListItem>Electronics</asp:ListItem>
                                <asp:ListItem>Fashion</asp:ListItem>
                                <asp:ListItem>Motors</asp:ListItem>
                                <asp:ListItem>Collectibles &amp; Art</asp:ListItem>
                                <asp:ListItem>Home, Outdoors &amp; Decor</asp:ListItem>
                                <asp:ListItem>Entertainment</asp:ListItem>
                                <asp:ListItem>Deals &amp; Gifts</asp:ListItem>
                            </asp:DropDownList></td>
                        <td class="style13">
                            </td>
                    </tr>
                    <tr>
                        <td class="style6">
                            <asp:Label ID="Label1" runat="server" Text="Price: "></asp:Label>
                        </td>
                        <td class="style7">
                            &nbsp;<asp:TextBox ID="TxtBoxPrice1" runat="server"></asp:TextBox>
&nbsp;&nbsp;<asp:Label ID="Label8" runat="server" Text="To: "></asp:Label>
&nbsp;<asp:TextBox ID="TxtBoxPrice2" runat="server"></asp:TextBox>
                        </td>
                        <td class="style14">
                            <asp:RadioButton ID="Bolivianos" runat="server" GroupName="ProductCurrency" 
                                Text="Bs." />
&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:RadioButton ID="Dollars" runat="server" GroupName="ProductCurrency" 
                                Text="$us" />
                        &nbsp;&nbsp;&nbsp;
                            <asp:RadioButton ID="noCurrency" runat="server" GroupName="ProductCurrency" 
                                Text="Uncheck" Checked="true" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style8">
                            <asp:Label ID="Label2" runat="server" Text="Quantity: "></asp:Label>
                        </td>
                        <td class="style9">
                            &nbsp;<asp:TextBox ID="TxtBoxQuantity1" runat="server"></asp:TextBox>
&nbsp;&nbsp;<asp:Label ID="Label10" runat="server" Text="To: "></asp:Label>
&nbsp;<asp:TextBox ID="TxtBoxQuantity2" runat="server"></asp:TextBox>
                        </td>
                        <td class="style15">
                            </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text="Register Date: "></asp:Label>
                        </td>
                        <td class="style1">
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <br />
&nbsp;&nbsp;
                            <asp:Label ID="Label11" runat="server" Text="From: "></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
                                BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
                                Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="16px" 
                                Width="16px">
                                <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                                <NextPrevStyle VerticalAlign="Bottom" />
                                <OtherMonthDayStyle ForeColor="#808080" />
                                <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                <SelectorStyle BackColor="#CCCCCC" />
                                <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                                <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <WeekendDayStyle BackColor="#FFFFCC" />
                            </asp:Calendar>
&nbsp;&nbsp;
                            </td>
                        <td class="style16">
                            &nbsp;&nbsp;&nbsp;
                            <asp:Label ID="Label12" runat="server" Text="To: "></asp:Label>
                            <asp:Calendar ID="Calendar2" runat="server" BackColor="White" 
                                BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
                                Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="16px" 
                                Width="88px">
                                <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                                <NextPrevStyle VerticalAlign="Bottom" />
                                <OtherMonthDayStyle ForeColor="#808080" />
                                <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                <SelectorStyle BackColor="#CCCCCC" />
                                <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                                <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <WeekendDayStyle BackColor="#FFFFCC" />
                            </asp:Calendar>
                        </td>
                    </tr>
                    <tr>
                        <td class="style10">
                            <asp:Label ID="Label13" runat="server" Text="Search Words:"></asp:Label>
                        </td>
                        <td class="style11">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="TxtBoxWords" runat="server" Width="299px"></asp:TextBox>
                        </td>
                        <td class="style17">
&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                    </tr>
                    <tr>
                        <td>
                            
                        </td>
                        <td class="style1">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="BtnSearch" runat="server" Font-Bold="True" ForeColor="#003366" 
                                Height="26px" Text="Search" Width="121px" onclick="BtnSearch_Click" />
                        </td>
                        <td class="style16">
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="LblResults" runat="server" BackColor="#33CC33" 
            Font-Size="Medium" ForeColor="White"></asp:Label>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DataGrid ID="TopicGrid" runat="server" PageSize="10" AllowPaging="True" DataKeyField="ProductId"
            AutoGenerateColumns="False" CellPadding="4" ForeColor="#003366" 
                GridLines="None" 
                OnPageIndexChanged="OnPageIndexChanged" oneditcommand="TopicGrid_EditCommand"
             >
            <Columns>
                <asp:EditCommandColumn EditText="Select" ></asp:EditCommandColumn>
                <asp:BoundColumn HeaderText="Product Id" DataField="ProductId" Visible="false"></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Name" DataField="Name" HeaderStyle-Width="500">
                <HeaderStyle Width="500px"></HeaderStyle></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Register Date" DataField="Postdate" HeaderStyle-Width="100">
                <HeaderStyle Width="100px"></HeaderStyle>
                </asp:BoundColumn>
                <asp:BoundColumn HeaderText="Price" DataField="Price" visible="true"></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Currency" DataField="Currency" visible="true"></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Quantity" DataField="Quantity" visible="true"></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Category" DataField="Category" visible="true"></asp:BoundColumn>
               
            </Columns>
            <EditItemStyle BackColor="#003366" ForeColor="White" />
            <FooterStyle BackColor="#003366" Font-Bold="True" ForeColor="White" />
            <SelectedItemStyle BackColor="White" Font-Bold="True" ForeColor="#003366" />
            <PagerStyle BackColor="#003366" ForeColor="White" HorizontalAlign="Center" 
                Mode="NumericPages" />
            <AlternatingItemStyle BackColor="#003366" ForeColor="White" />
            <ItemStyle BackColor="#003366" ForeColor="White" />
            <HeaderStyle BackColor="#3a4f63" Font-Bold="True" ForeColor="White" />
        </asp:DataGrid></td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
        <td></td>
        <td>
&nbsp;
            &nbsp;
            </td>
        <td></td>
        </tr>
    </table>
</asp:Content>
